/**
 * Created by Administrator on 2015/12/23 0023.
 */
//创建ajax引擎
function getXmlHttpObject(){
    var xmlHttpRequest;
    //不同浏览器获取对象xmlhttprequest 对象方法不一样
    if(window.ActiveXObject){
        xmlHttpRequest=new ActiveXObject("Microsoft.XMLHTTP");
    }else{
        xmlHttpRequest=new XMLHttpRequest();
    }
    return xmlHttpRequest;
}

function $(id){
    return document.getElementById(id);
}